#include "1-LexAnalysis/LexAnalysis.hpp"
#include "2-SyntaxAnalysis/SyntaxAnalysis.hpp"

#include <set>
#include <fstream>

int main()
{
    std::cout << "*****test*****" << std::endl;

    std::filesystem::path sourceFile("./test.pas");

    LexAnalysis lexAnalysis;
    lexAnalysis.lineScanner(sourceFile);

    SyntaxAnalysis syntaxAnalysis;
    syntaxAnalysis.parser(sourceFile.replace_extension(".dyd"));

    /* empty .err */
    std::ofstream ofs_error;
    ofs_error.open(sourceFile.replace_extension(".err"), std::ios::trunc);
    ofs_error.close();

    return 0;
}